package com.jk.smartelderlycare.service;

import com.jk.smartelderlycare.dto.SysPharm;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/7 17:31
 * @Version v1.0
 */
public interface SysPharmService {
    /**
     * @description: 药品列表后端分页查询
     * @param: [sysPharm, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysPharm>
     * @author hhk
     * @date: 2024/11/7 17:20
     */
    @PostMapping(value = "sysPharm/findSysPharmPaginationList")
    public PagedResponse<SysPharm> findSysPharmPaginationList(SysPharm sysPharm, Integer pageNum, Integer pageSize);
    /**
     * @description: 新增药品列表
     * @param: [sysPharm]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:21
     */

    public void addSysPharm( SysPharm sysPharm);
    /**
     * @description: 根据id删除一条数据
     * @param: [pharmId]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:22
     */

    public void deleteSysPharmByPharmId( Long pharmId);
    /**
     * @description: 根据id回显一条数据
     * @param: [pharmId]
     * @return: com.jk.smartelderlycare.dto.SysPharm
     * @author hhk
     * @date: 2024/11/7 17:27
     */
    public SysPharm findSysPharmByPharmId( Long pharmId);
    /**
     * @description: 修改药品列表
     * @param: [sysPharm]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:28
     */
    public void updateSysPharm( SysPharm sysPharm);
    /**
     * @description: 状态修改
     * @param: [sysPharm]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 17:30
     */
    public void updateStatusById(SysPharm sysPharm);
}
